package View.CoolSwing;
import java.awt.Color;
import java.awt.Component;
import java.awt.GradientPaint;
import java.awt.Graphics;
import java.awt.Graphics2D;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JToolBar;
import javax.swing.border.Border;

import org.jdesktop.swingx.border.DropShadowBorder;


public class CoolBar extends JToolBar{
	
	public CoolBar() {
		setBorder(new DropShadowBorder());
//        Border outerBorder = new DropShadowBorder(Color.BLACK, 0, 5, 12, false, true, true, true) {
//        							public void paintBorder(Component c, Graphics graphics, int x, int y, int width, int height) {
//        								super.paintBorder(c, graphics, x - 5, y, width + 10, height);
//        							}
//        	};
//        setBorder(outerBorder);
	}
	
	public void paintComponent(Graphics g) {
		Graphics2D g2 = (Graphics2D)g.create();
		int bottom = getHeight() - getInsets().bottom;
		GradientPaint gp =
			new GradientPaint(0, 0, Color.GRAY, 0, bottom, Color.WHITE);
		g2.setPaint(gp);
		g2.fillRect(0, 0, getWidth(), bottom);
//		g2.setColor(BLUEISH);
		g2.setColor(Color.BLUE);
		g2.drawLine(0, bottom - 1, getWidth(), bottom - 1);
		g2.dispose();
	}
	

}
